home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / Fight / fightingschool.swf / scripts / frame_302 / PlaceObject2_198_62 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-06-09  |  1KB  |  50 lines

  1. onClipEvent(enterFrame){
  2.    _root.HP = hp;
  3.    if(0 >= hp)
  4.    {
  5.       _root.gotoAndPlay("over3");
  6.    }
  7.    if(_root.PAUSE == false)
  8.    {
  9.       if(moving != false and ATT == false and ACTION == true)
  10.       {
  11.          if(moving == "RIGHT")
  12.          {
  13.             if(this._x < _root.MAX_X)
  14.             {
  15.                if(_root.BG_SCROLL == "RIGHT" and _root.MID_X < this._x)
  16.                {
  17.                   _root.bg1._x -= _root.bg1dis;
  18.                   _root.bg2._x -= _root.bg2dis;
  19.                   _root.bg3._x -= _root.bg3dis;
  20.                   _root.stepcnt -= 1;
  21.                   _root.step = _root.step + 1;
  22.                }
  23.                else
  24.                {
  25.                   this._x += stepdis;
  26.                }
  27.             }
  28.          }
  29.          else if(moving == "LEFT")
  30.          {
  31.             if(_root.MIN_X < this._x)
  32.             {
  33.                if(_root.BG_SCROLL == "LEFT" and this._x < _root.MID_X)
  34.                {
  35.                   _root.bg1._x += _root.bg1dis;
  36.                   _root.bg2._x += _root.bg2dis;
  37.                   _root.bg3._x += _root.bg3dis;
  38.                   _root.stepcnt -= 1;
  39.                   _root.step = _root.step + 1;
  40.                }
  41.                else
  42.                {
  43.                   this._x -= stepdis;
  44.                }
  45.             }
  46.          }
  47.       }
  48.    }
  49. }
  50.